package com.reusables {
	import flash.display.Sprite;
	import flash.text.AntiAliasType;
	import flash.text.Font;
	import flash.text.TextField;
	import flash.text.TextFormat;
	import flash.text.TextFormatAlign;

	public class ArrowBtn extends Sprite {
		private var _myFont : Font;
		private var _myFormat : TextFormat;
		private var _txtField : TextField;

		public function ArrowBtn() {
			createArrowBtn();
		}

		private function createArrowBtn() : void {
			var	_circle : Sprite = new Sprite();
			_circle.graphics.beginFill(0xffffff);
			_circle.graphics.lineStyle(1, 0x000000);
			_circle.graphics.drawCircle(0, 0, 15);
			_circle.graphics.endFill();

			addChild(_circle);
			_myFont = new Font1();

			_myFormat = new TextFormat();
			_myFormat.font = _myFont.fontName;
			_myFormat.size = 50;
			_myFormat.letterSpacing = 1;
			_myFormat.align = TextFormatAlign.CENTER;

			_txtField = new TextField();
			_txtField.width = 30;
			_txtField.height = 30;
			_txtField.selectable = false;
			_txtField.textColor = 0x000000;
			_txtField.border = false;
			_txtField.borderColor = 0x000000;
			_txtField.defaultTextFormat = _myFormat;
			_txtField.embedFonts = true;
			_txtField.antiAliasType = AntiAliasType.NORMAL;
			_txtField.text = "<";
			_circle.addChild(_txtField);
			_txtField.x = -15;
			_txtField.y = -33;
			
			buttonMode = true;
		}
	}
}
